using System;
using System.Collections.Generic;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public class Pos_SalesDetailManager
{
	public Pos_SalesDetailManager()
	{
	}

    public static List<Pos_SalesDetail> GetAllPos_SalesDetails()
    {
        List<Pos_SalesDetail> pos_SalesDetails = new List<Pos_SalesDetail>();
        SqlPos_SalesDetailProvider sqlPos_SalesDetailProvider = new SqlPos_SalesDetailProvider();
        pos_SalesDetails = sqlPos_SalesDetailProvider.GetAllPos_SalesDetails();
        return pos_SalesDetails;
    }


    public static Pos_SalesDetail GetPos_SalesDetailByID(int id)
    {
        Pos_SalesDetail pos_SalesDetail = new Pos_SalesDetail();
        SqlPos_SalesDetailProvider sqlPos_SalesDetailProvider = new SqlPos_SalesDetailProvider();
        pos_SalesDetail = sqlPos_SalesDetailProvider.GetPos_SalesDetailByID(id);
        return pos_SalesDetail;
    }


    public static int InsertPos_SalesDetail(Pos_SalesDetail pos_SalesDetail)
    {
        SqlPos_SalesDetailProvider sqlPos_SalesDetailProvider = new SqlPos_SalesDetailProvider();
        return sqlPos_SalesDetailProvider.InsertPos_SalesDetail(pos_SalesDetail);
    }


    public static bool UpdatePos_SalesDetail(Pos_SalesDetail pos_SalesDetail)
    {
        SqlPos_SalesDetailProvider sqlPos_SalesDetailProvider = new SqlPos_SalesDetailProvider();
        return sqlPos_SalesDetailProvider.UpdatePos_SalesDetail(pos_SalesDetail);
    }

    public static bool DeletePos_SalesDetail(int pos_SalesDetailID)
    {
        SqlPos_SalesDetailProvider sqlPos_SalesDetailProvider = new SqlPos_SalesDetailProvider();
        return sqlPos_SalesDetailProvider.DeletePos_SalesDetail(pos_SalesDetailID);
    }
}
